package com.changgou.seckill.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "tb_seckill_goods")
public class SeckillGoods implements Serializable {
    @Id
    @Column(name = "id")
    private Integer id;

    /**
     * spu ID
     */
    /*@Column(name = "goods_id")*/
    private Integer goods_id;

    /**
     * sku ID
     */
   /* @Column(name = "item_id")*/
    private Integer item_id;

    /**
     * 标题
     */
    @Column(name = "title")
    private String title;

    /**
     * 商品图片
     */
  /*  @Column(name = "small_pic")*/
    private String small_pic;

    /**
     * 原价格
     */
    @Column(name = "price")
    private BigDecimal price;

    /**
     * 秒杀价格
     */
    /*@Column(name = "cost_price")*/
    private BigDecimal cost_price;

    /**
     * 商家ID
     */
  /*  @Column(name = "seller_id")*/
    private String seller_id;

    /**
     * 添加日期
     */
   /* @Column(name = "create_time")*/
    private Date create_time;

    /**
     * 审核日期
     */
   /* @Column(name = "check_time")*/
    private Date check_time;

    /**
     * 审核状态
     */
    @Column(name = "status")
    private String status;

    /**
     * 开始时间
     */
  /*  @Column(name = "start_time")*/
    private Date start_time;

    /**
     * 结束时间
     */
    /*@Column(name = "end_time")*/
    private Date end_time;

    /**
     * 秒杀商品数
     */
    @Column(name = "num")
    private Integer num;

    @Column(name = "sn")
    private Integer sn;

    @Column(name = "sort")
    private Integer sort;

    /*@Column(name = "top_count")*/
    private Integer top_count;

    /**
     * 剩余库存数
     */
    /*@Column(name = "stock_count")*/
    private Integer stock_count;

    /**
     * 描述
     */
    @Column(name = "introduction")
    private String introduction;

    private static final long serialVersionUID = 1L;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public Integer getItem_id() {
        return item_id;
    }

    public void setItem_id(Integer item_id) {
        this.item_id = item_id;
    }

    public String getSmall_pic() {
        return small_pic;
    }

    public void setSmall_pic(String small_pic) {
        this.small_pic = small_pic;
    }

    public BigDecimal getCost_price() {
        return cost_price;
    }

    public void setCost_price(BigDecimal cost_price) {
        this.cost_price = cost_price;
    }

    public String getSeller_id() {
        return seller_id;
    }

    public void setSeller_id(String seller_id) {
        this.seller_id = seller_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getCheck_time() {
        return check_time;
    }

    public void setCheck_time(Date check_time) {
        this.check_time = check_time;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public Integer getStock_count() {
        return stock_count;
    }

    public void setStock_count(Integer stock_count) {
        this.stock_count = stock_count;
    }

    /**
     * 获取标题
     *
     * @return title - 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置标题
     *
     * @param title 标题
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * 获取商品图片
     *
     * @return small_pic - 商品图片
     */
    public String getSmall_Pic() {
        return small_pic;
    }

    /**
     * 设置商品图片
     *
     * @param small_pic 商品图片
     */
    public void setSmall_Pic(String small_pic) {
        this.small_pic = small_pic == null ? null : small_pic.trim();
    }

    /**
     * 获取原价格
     *
     * @return price - 原价格
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置原价格
     *
     * @param price 原价格
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }


    /**
     * 设置商家ID
     *
     * @param seller_id 商家ID
     */
    public void setSellerId(String seller_id) {
        this.seller_id = seller_id == null ? null : seller_id.trim();
    }



    /**
     * 获取审核状态
     *
     * @return status - 审核状态
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置审核状态
     *
     * @param status 审核状态
     */
    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }





    /**
     * 获取描述
     *
     * @return introduction - 描述
     */
    public String getIntroduction() {
        return introduction;
    }

    public Integer getSn() {
        return sn;
    }

    public void setSn(Integer sn) {
        this.sn = sn;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getTop_count() {
        return top_count;
    }

    public void setTop_count(Integer top_count) {
        this.top_count = top_count;
    }

    /**
     * 设置描述
     *
     * @param introduction 描述
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction == null ? null : introduction.trim();
    }
}